﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using IndirectX.Shaders;

namespace IndirectX.D3DCompiler
{
    public class ShaderBytecode
    {
        private DataStream _dataStream;

        public List<ShaderCodeToken> Tokens = new List<ShaderCodeToken>();



        public ShaderBytecode(DataStream dataStream)
        {
            this._dataStream = dataStream;

            this._dataStream.Seek(0, SeekOrigin.Begin);

            this.Program = ShaderParser.Parse(this._dataStream);


            dataStream.Position = 0;
        }

        protected ShaderProgram Program;

    }

       public class ShaderInterpreter
    {
        
    }
  
}
